public class Main {
    public static void main(String[] args) {

        //创建外部类CPU的对象
        CPU cpu = new CPU();

        //使用外部类创建内部类Processor的对象
        CPU.Processor processor = cpu.new Processor();

        //使用外部类CPU创建内部类RAM的对象
        CPU.RAM ram = cpu.new RAM();
        System.out.println("Processor Cache = " + processor.getCache());
        System.out.println("Ram Clock speed = " + ram.getClockSpeed());
    }
}